package com.example.constant;

/**
 * @Program: ishop
 * @Description:  Redis key 常量类
 **/
public class RedisConstance {
    public static final String LOGIN_USER_TOKEN = "i-shop:user:login:";


    // 秒杀商品库存前缀
    public static final String SKILL_GOODS_PREFIX = "i-shop:skill:goods:";
    // 某个秒杀商品列表
    public static final String SKILL_USER_PREFIX = "i-shop:skill:userList:";
    //即将开始的秒杀商品列表前缀
    public static final String SKILL_GOODS_LIST_PREFIX = "i-shop:skill:goods:list:";

    //店铺详情缓存前缀
    public static final String STORE_PREFIX = "i-shop:store:";
    public static final long STORE_EXPIRE_TIME = 5;

    //库存锁
    public static final String STOCK_KEY_PREFIX = "stock:lock:";

    public static final String USER_ORDER_TOKEN_PREFIX = "order:token";

    public static final String FLOW_VISIT_KEY = "i-shop:flow:visit:";
    public static final String FLOW_REQUEST_KEY = "i-shop:flow:request:";
    public static final String FLOW_IP_KEY = "i-shop:flow:ip-set:";
}